package com.spring.crm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * VIEW
 * </p>
 *
 * @author 何卓
 * @since 2022-02-17
 */
@Getter
@Setter
@TableName("t_contract_v")
@ApiModel(value = "ContractV对象", description = "VIEW")
public class ContractV implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("contract_id")
    private String contractId;

    @ApiModelProperty("合同编号")
    @TableField("contract_number")
    private String contractNumber;

    @ApiModelProperty("合同名称")
    @TableField("contract_name")
    private String contractName;

    @ApiModelProperty("甲方")
    @TableField("first_party")
    private String firstParty;

    @ApiModelProperty("乙方")
    @TableField("second_party")
    private String secondParty;

    @ApiModelProperty("甲方代表人信息")
    @TableField("first_representative")
    private String firstRepresentative;

    @ApiModelProperty("乙方代表人信息")
    @TableField("second_representative")
    private String secondRepresentative;

    @ApiModelProperty("合同签订日期")
    @TableField("contract_date")
    private String contractDate;

    @ApiModelProperty("合同到期日期")
    @TableField("date_due")
    private String dateDue;

    @ApiModelProperty("合同总金额")
    @TableField("contract_amount")
    private String contractAmount;

    @ApiModelProperty("合同状态（0-待审批 1-已签订 2-已完成 3-已作废）")
    @TableField("contract_status")
    private String contractStatus;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("备注1")
    @TableField("remark1")
    private String remark1;

    @ApiModelProperty("备注2")
    @TableField("remark2")
    private String remark2;

    @ApiModelProperty("客户id")
    @TableField("custom_id")
    private String customId;

    @ApiModelProperty("销售过程id")
    @TableField("sales_id")
    private String salesId;

    @TableField("create_time")
    private String createTime;

    @ApiModelProperty("负责人id")
    @TableField("principal_id")
    private String principalId;

    @ApiModelProperty("真实名称（昵称）")
    @TableField("principal_name")
    private String principalName;

    @ApiModelProperty("用户名")
    @TableField("custom_name")
    private String customName;

    @ApiModelProperty("用户名")
    @TableField("business_name")
    private String businessName;

    @ApiModelProperty("百分比")
    @TableField("rate")
    private String rate;


}
